package com.wzcl.app.service.common;


import com.wzcl.app.dao.model.Orders;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.Map;

public interface MyPayService {

    //发起支付.
    String appPay(Orders orders, BigDecimal money, String name, String ip);

    //查询
    //TODO 支付记录哈哈哈
    //String query(PayRecord record);

    //退款支付.
    //TODO 支付记录哈哈哈
    //void refund(PayRecord record);

    //退款查询
    //TODO 支付记录哈哈哈
    //String queryRefund(PayRecord record);

    //回调
    void notify(HttpServletRequest request, HttpServletResponse response);

    void refundNotify(HttpServletRequest request, HttpServletResponse response);

    //校验
    boolean check(Map<String, String> params) throws Exception;
}
